#define _CRT_SECURE_NO_WARNINGS 1

#include"vector.h"
#include<iostream>
#include<vector>
using namespace std;

int main()
{
	//int i(4);
	//cout << i << endl;

	vector<int> v1 = { 1, 2, 3, 4, 0, 5, 6, 7 };
	vector<int>::iterator it = v1.begin();
	while (it != v1.end())
	{
		if (*it)
			cout << *it << ' ';
		else
			it = v1.erase(it);
		it++;
	}

	return 0;
}